<%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <jsp:include page="../basePath.jsp"></jsp:include>
    <title>应收应付配置</title>
    <style>
    .selectTD span{background:#eee}
    </style>
    <script language="javascript" src="page/maintain/accrual_info.js" charset="utf-8"></script>
  </head>
  
  <body class="scrolling">
  <input type="hidden" id="accrualManType" value="${accrualManType }">
	<div class="div">
	  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="2" >
        <tr>
          <td colspan="3">
			<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="point_bg">
	     	  <tr>
	     	   	<td align="left">数据日期：<input type="text" id="busiDate" value="${currentTradeDate }" class="commDate"></td>
	     	  	<td height="30" align="right">
	     	  	  <input type="button" value="增 加" class="button" id="btnAdd" >
	       		  <input type="button" value="修 改" class="button" id="btnEdit" disabled>
                  <input type="button" value="保 存" class="button" id="btnSave" disabled>
                  <input type="button" value="删 除" class="button" id="btnDelete" disabled>
                  <input type="button" value="取 消" class="button" id="btnCancle" disabled >
	          	</td>
	          </tr>
	     	</table>
		  </td>
        </tr>
        <tr>
          <td width="33%" height="148" align="left" valign="top" style="border-right:1px solid rgb(164,198,215);padding-right:5px">
            <div style="width:100%;height:100%;overflow:auto">
	          	<table id="accrualList" width="100%" border="0" align="center" cellpadding="3" cellspacing="0" >
	          	  <tr><td arapType="" arapReason="" style="cursor:pointer"><b>应收应付汇总信息</b></td></tr>
	<c:forEach var="conf" items="${arapTypeConfs}" >
	          	  <tr><td arapType="${conf.code }" arapReason="${conf.value }" style="cursor:pointer">
	          	  	<img src="themes/comm/images/close.gif" style="margin:0 3px 3px 0; vertical-align:middle"/><span>${conf.code }：${conf.name }</span>
	          	  </td></tr>
	</c:forEach>
	          	</table>
          	</div>
          </td>
     	  <td width="67%" align="center" valign="top" style="padding:1px 0 0">
			<table width="100%" class="form-table" border="0" align="center" cellpadding="0" cellspacing="0" >
			  <colgroup>
				<col style="background:rgb(250,250,250)" style="text-align:right" width="19%">
				<col style="background:rgb(250,250,250)" width="35%">
				<col style="background:rgb(250,250,250)" style="text-align:right" width="18%">
				<col style="background:rgb(250,250,250)" width="28%">
			  </colgroup>
			  <tr>
			  	<td>应收应付类型：</td>				
			   	<td>
			   	  <input type="hidden" id="aiId">
			   	  <input type="hidden" id="arapType"><span id="arapType_text"></span> 
			   	</td>
			 	<td>应收付原因：</td>				
			   	<td><select id="arapReason" name="" class="select-one select-width" disabled>
	<c:forEach var="conf" items="${arapReasonConfs}" >
				  	<option value="${conf.code}">${conf.code}:${conf.name}</option>
	</c:forEach>
				</select></td>
			  </tr>
			  <tr>
			  	<td>交易日期：</td>				
			   	<td><input type="text" id="tradeDate" value="1900-01-01" default-value="1900-01-01" readonly class="commDate"></td>
			 	<td>币种：</td>				
			   	<td><select id="curTypeSipf" name="" default-value="CNY" class="select-one select-width" disabled>
	<c:forEach var="conf" items="${curTypeSipfConfs}" >
				  	<option value="${conf.code}">${conf.code}:${conf.name}</option>
	</c:forEach>
				</select></td>
			  </tr>
			  <tr>
			  	<td>对方机构：</td>				
			   	<td><select id="oppPar" name="" class="select-one select-width" default-value="999" disabled>
			   		<option value=""></option>
	<c:forEach var="conf" items="${oppParConfs}" >
				  	<option value="${conf.code}">${conf.code}:${conf.name}</option>
	</c:forEach>
				  </select>
				  <input type="text" id="taCode" class="text" maxlength="3" style="width:50px;display:none" >
				</td>
			 	<td>市场代码：</td>				
			   	<td><select id="mktCodeSipf" class="select-one select-width" default-value="99" disabled>
			   		<option value=""></option>
	<c:forEach var="conf" items="${mktCodeSipfConfs}" >
				  	<option value="${conf.code}">${conf.code}:${conf.name}</option>
	</c:forEach>
				</select></td>
			  </tr>
			  <tr>
			  	<td>业务类型：</td>				
			   	<td><select id="arapBusiType" class="select-one select-width" disabled>
			   		<option value=""></option>
	<c:forEach var="conf" items="${arapBusiTypeConfs}" >
				  	<option value="${conf.code}">${conf.code}:${conf.name}</option>
	</c:forEach>
				</select></td>
				<td>已收付日期：</td>				
			   	<td><input type="text" id="harapDate" value="1900-01-01" default-value="1900-01-01" readonly class="commDate"></td>
			  </tr>
			  <tr>
			  	<td>应收应付金额：</td>				
			   	<td><input type="text" id="arapAmt" value="" readonly maxlength="18" class="text"></td>
			 	<td>应收付日期：</td>				
			   	<td><input type="text" id="arapDate" value="${nextTradeDate }" default-value="${nextTradeDate }" readonly class="commDate" style="width:80px"><input type="checkbox" id="arapDateNull" disabled>取空值</td>
			  </tr>
			  <tr>
			  	<td>摘要信息：</td>				
			   	<td colspan="3"><input type="text" id="summary" value="" readonly maxlength="240" class="text" style="width:410px"></td>
			  </tr>
			</table>
		  </td>
		</tr>
	  </table>
	  <div id="ListDiv" align="center" style="padding:0 2px" >
	   <div style="width:100%;overflow-x:auto;scrollbar-face-color: #dcdcdc; scrollbar-highlight-color: #ffffff; scrollbar-shadow-color: #ffffff; scrollbar-3dlight-color: #ffffff; scrollbar-arrow-color: #737373; scrollbar-track-color: #ffffff; scrollbar-darkshadow-color: #ffffff;">
	  	<table id="01060202resultList_0" cellSpacing="0" cellPadding="0" width="100%" >
    	  <tr><td>
        	<table id="01060202resultList_0_read" cellSpacing="0" cellPadding="0" width="100%" height="100%" border="0" bordercolor="#AEAEAE" rules="rows" style="border-collapse:collapse;font-size:9pt;">
          	  <thead>
            	<tr class="queryList_titlebg" height="27">
            	  <th align="center" width="11%" nowrap class="table_td_font">应收应付类型</th>
            	  <th align="center" width="11%" nowrap class="table_td_font">应收付原因</th>
            	  <th align="center" width="8%" nowrap class="table_td_font">交易日期</th>
            	  <th align="center" width="6%" nowrap class="table_td_font">币种</th>
            	  <th align="center" width="8%" nowrap class="table_td_font">对方机构</th>
            	  <th align="center" width="10%" nowrap class="table_td_font">市场代码</th>
            	  <th align="center" width="8%" nowrap class="table_td_font">业务类型</th>
            	  <th align="center" width="10%" nowrap class="table_td_font">应收应付金额</th>
            	  <th align="center" width="9%" nowrap class="table_td_font">已收付日期</th>
            	  <th align="center" width="9%" nowrap class="table_td_font">应收付日期</th>
            	  <th align="center" width="10%" nowrap class="table_td_font">摘要信息</th>
            	</tr>
   			  </thead>
  			  <tbody id="data_list">
          	  </tbody>
        	</table>
   		  </td></tr>
   		  <tr><td class="query_bottomimg"></td></tr>
    	  <tr><td height="10px"></td></tr>
  	  	</table>
  	   </div>
	  </div>
	  <div class="pageNext"></div>
	</div>
  </body>
</html>
